package com.topvision.service.impl.zwan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.zwan.DeviceVendorMapper;
import com.topvision.model.zwan.DeviceVendor;
import com.topvision.service.zwan.DeviceVendorService;

@Service("deviceVendorService")
public class DeviceVendorServiceImpl implements DeviceVendorService {
	@Autowired
	private DeviceVendorMapper deviceVendorMapper;
	
	@Override
	public DeviceVendor queryObject(Long id){
		return deviceVendorMapper.queryObject(id);
	}
	
	@Override
	public List<DeviceVendor> queryList(Map<String, Object> map){
		return deviceVendorMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return deviceVendorMapper.queryTotal(map);
	}
	
	@Override
	public void save(DeviceVendor deviceVendor){
		deviceVendorMapper.save(deviceVendor);
	}
	
	@Override
	public void update(DeviceVendor deviceVendor){
		deviceVendorMapper.update(deviceVendor);
	}
	
	@Override
	public void delete(Long id){
		deviceVendorMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		deviceVendorMapper.deleteBatch(ids);
	}

    @Override
    public DeviceVendor queryObjectByMap(Map<String, Object> map){
        return deviceVendorMapper.queryObjectByMap(map);
    }

    @Override
    public List<DeviceVendor> queryByParam(Map<String, Object> map){
        return deviceVendorMapper.queryByParam(map);
    }
}
